package com.briup.estore.common.service;

import com.briup.estore.common.bean.User;
import org.springframework.data.domain.Page;

import java.util.Map;

/**
 * @author adam
 * @date 2022/10/11
 */
public interface IUserService {
    Page<User> findAll(String query, int page, int pageSize) throws Exception;

    void disable(long id);

    void enable(long id);

    User login(String loginName, String password) throws Exception;

    void register(User user) throws Exception;

    long countUser();

    Map<String,Double> sexRatio();


}
